package com.daxt.model.dic;

public enum DicDocFileType {

	SCATTERED("scattered","散文件"),//
	DOSSIER("dossier","卷"),//
	DOC("doc","件");//

	private String key;
	private String value;

	private DicDocFileType(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		DicDocFileType[] values = DicDocFileType.values();
		for (DicDocFileType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
